# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class PrefetchTaskInfo(object):

    def __init__(self, url=None, region=None, isp=None, copyNum=None, successNum=None, fileSize=None, taskType=None, status=None, errInfo=None, expireAt=None, fileId=None, zone=None):
        """
        :param url: (Optional) url
        :param region: (Optional) 地区
        :param isp: (Optional) 运营商
        :param copyNum: (Optional) 下发的目标副本数
        :param successNum: (Optional) 成功预热的副本数
        :param fileSize: (Optional) 文件大小
        :param taskType: (Optional) 1代表控制台下发的任务,2代表热度计算下发的预热任务
        :param status: (Optional) 1:active，2:表示purge中暂时停止预热
        :param errInfo: (Optional) 失败预热的原因
        :param expireAt: (Optional) 热度计算下发任务的过期时间
        :param fileId: (Optional) 文件id
        :param zone: (Optional) 地理位置
        """

        self.url = url
        self.region = region
        self.isp = isp
        self.copyNum = copyNum
        self.successNum = successNum
        self.fileSize = fileSize
        self.taskType = taskType
        self.status = status
        self.errInfo = errInfo
        self.expireAt = expireAt
        self.fileId = fileId
        self.zone = zone
